package com.museum.controller.APi.feignAPI;

import com.alibaba.fastjson.JSONObject;
import com.museum.base.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("museum-role")
public interface FeignAPIController {
    /**
     * 获取用户信息
     *
     * @param token
     * @return
     */
    @GetMapping("getUserMessageByUSerId")
    BaseResponse<JSONObject> getUserMessageByUSerId(@RequestParam("token") String token);

    /**
     * 获取地域的子树
     *
     * @param token
     * @return
     */
    @GetMapping("getAreaTreeByNodeId")
    BaseResponse<JSONObject> getAreaTreeByNodeId(@RequestParam("token") String token);
}
